/*第一层*/
@keyframes animX{
    0% {
      left: 0px;
    }
    100% {
      left: 500px;
    }
  }
  @keyframes animY{
    0% {
      top: 0px;
    }
    100% {
      top: 300px;
    }
  }
  @keyframes scale {
  
    0% {
      transform: scale(0.4);
      z-index: 0
    }
    50% {
      transform: scale(1);
      z-index: 3
    }
    100% {
      transform: scale(0.5);
      z-index: 0
    }
  }
  
  
  .ball {
    width: 105px;
    height: 105px;
    /*background-color: #f66;*/
    border-radius: 50%;
    position: absolute;
    color:#fff;
    font-size:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: yellow;
    background-size: 100% 100%;
    -webkit-background-size: 100% 100%;
    line-height: 120px;
    z-index: 3;
    /*动画执行一次所需时间*/
    animation-duration: 10s, 10s, 20s;
    /*动画以何种运行轨迹完成一个周期*/
    animation-timing-function: cubic-bezier(0.36,0,0.64,1);
    /*动画播放次数,无线循环播放*/
    animation-iteration-count: infinite;
    /*是否轮流反向播放动画 alternate:正向播放*/
    animation-direction: alternate;
    animation-name: animX, animY,scale;
    transform: rotateX(-60deg);
  }
  
  .lopp {
    width: 500px;
    height: 300px;
    border: 2px solid #999;
    border-radius: 50%;
    position: absolute;
    left: 50px;
    top: 70px;
  }
  /*鼠标进入停止*/
  .active {
    animation-play-state: paused;
  }
  /*第二层*/
  @keyframes anim2X{
    0% {
      left: 100px;
    }
    100% {
      left: 420px;
    }
  }
  @keyframes anim2Y{
    0% {
      top: 70px;
    }
    100% {
      top: 200px;
    }
  }
  .circle {
    position: absolute;
    top: 114px;
    left: 250px;
    background: red;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    z-index: 3;
    color: #fff;
    font-size: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    background: lightgreen;
    background-size: 100% 100%;
    -webkit-background-size: 100% 100%;
  }
  .container {
  position: relative;
  transform: rotateX(60deg);
    width: 800px;
    height: 800px;
    margin: 0 auto;
  }